const mongoose = require('mongoose')

mongoose.connect('mongodb://client:2019xspkl@119.29.252.113:27017/client?authSource=client')

let con = mongoose.connection

con.on('open',()=>{
    console.log('数据库连接成功');
})

con.on('error',(err)=>{
    console.log('数据库连接失败',err);
})

module.exports = mongoose

